<div class="container" style="min-height: 206px;">   
    
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>Information</div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>
        
        <div class="selectedcustomer" style="text-align:center;">
            <center><img src="<?=getImage($location->customer->image,'images/content/',75,75);?>"/></center>
            <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$location->customer->custno?>"><?php echo $location->customer->lastname?></a></span>

        </div>


    </div>
    
    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>                               
                
                
                <?php if(isset($dispatch) && $dispatch!=NULL):?>
                <?php if($dispatchLevel!==false):?>
                    <li><a href="javascript:void(0)" id="btnSaveNext" class="save-button">Save & Next</a></li>
                    <li><a href="javascript:void(0)" id="btnSaveReturn" class="save-button">Save & Return</a></li>
                    <li><a href="<?php echo $this->createUrl('/dispatch/billedDispatchList',array('level'=>$dispatchLevel)); ?>" id="btnSaveReturn" class="return-button">Return</a></li>
                <?php endif; ?>
                <li><a href="javascript:void(0)" id="btnSave" class="save-button">Save</a></li>
		<li><a target="_blank" class="print-button" href="/index.php?r=pdf/dispatch&dispatch=<?=$dispatch->dispatch?>" id="btnViewPrint">View/Print</a> </li>
                    <li><a class="email-button" href="javascript:void(0)" id="mailForm" onclick="">E-Mail</a></li>
                
                
                
                <?php else:?>
                <li><a href="javascript:void(0)" id="createDispatch" class="add-button">Add Dispatch</a></li>
                <?php endif?>
        </ul>
    </div>
    
    <?php if (isset($contacts) && count($contacts) > 0): ?>

           <div class="inside" style="padding-top:0px; padding-bottom:0px;">
                <h5 style="padding-left:11px;">Contacts</h5>
                <ul class="links" style="margin-left:0px !important;">
                    <li id='blankforvalidation2' style="display:none">&nbsp;</li>

                    <?php foreach ($contacts as $item): ?>

                        <li><?php
                            $this->renderPartial('/locations/_tooltip', array(
                                'model' => $item,
                            ))
                        ?></li>
                        <?php endforeach ?>


                </ul>
            </div>
       
    <?php endif ?>
    
    
    

</div>
